Let's use the random number we just created to control the height of our block.

  • Change the name of the random variable to pipe_height.
  • Change the shape's name to bottom_pipe.
  • Change the rectangle's x-coordinate to 250. Change its height parameter to pipe_height.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)